FROM openjdk:8

LABEL author="WangYuan"
LABEL email="wangyuan2185@163.com"

COPY ./panda-demo.jar /opt/panda-demo.jar

RUN mkdir /var/log/panda-demo

VOLUME /var/log/panda-demo

WORKDIR /opt

EXPOSE 80

ENTRYPOINT ["java", "-jar", "/opt/panda-demo.jar", "--server.port=80"]
CMD ["--spring.profiles.active=dev"]